package com.zhiyou.controller.SystemRoleController;



import com.zhiyou.bean.Role;
import com.zhiyou.service.SystemRoleService.SystemRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.ArrayList;

@Controller
@RequestMapping("/shiro/role")
public class SystemRoleController {
    @Autowired
    SystemRoleService systemRoleService;

    @RequestMapping("/menus")
    public String roleList(){
       ArrayList<Role> rolelist = systemRoleService.selectAllRole();

       rolelist.stream().forEach(s->{
           System.out.println(rolelist);
       });
     return "rolemenus";
    }




}
